﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aribaccio.Device
{
    /// <summary>
    /// 设备连接参数接口
    /// </summary>
    public interface IDevicePara
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        string DeviceName { get; set; }
        /// <summary>
        /// 设备描述
        /// </summary>
        string DeviceCaption { get; set; }
        /// <summary>
        /// 设备类型名称
        /// </summary>
        string DeviceType { get; set; }
        /// <summary>
        /// 设备模组类型
        /// </summary>
        DeviceModule ModuleType { get; set; }
        /// <summary>
        /// 设备连接类型
        /// </summary>
        DeviceConnectType ConnectType { get; set; }

        /// <summary>
        /// 浅复制(浅克隆)
        /// </summary>
        /// <returns></returns>
        IDevicePara Clone();
        /// <summary>
        /// 深复制(深度克隆)
        /// </summary>
        /// <returns></returns>
        IDevicePara CloneDeep();
    }
}
